<{extend name="public/base"}>
<{block name="foot_source"}>
<script type="text/javascript" src="/static/webuploader/webuploader.js"></script>
<link rel="stylesheet" type="text/css" href="/static/webuploader/webuploader.css">
<{/block}>
<{block name="content"}>
<!-- left column -->
<div class="col-md-12">
    <!-- general form elements -->
    <div class="box box-primary">
        <div class="box-header with-border">
            <h3 class="box-title"><{$title}></h3>
        </div>
        <!-- /.box-header -->
        <!-- form start -->
        <form role="form" action="<{:url('admin/admin/create')}>" method="post">
            <div class="box-body">
                <div class="form-group">
                    <label for="username">电话</label>
                    <input type="text" class="form-control" id="username" name="username" placeholder="输入用户电话">
                </div>
                <div class="form-group">
                    <label for="nickname">姓名</label>
                    <input type="text" class="form-control" id="nickname" name="nickname" placeholder="输入用户姓名">
                </div>
                <div class="form-group">
                    <label for="password">用户密码</label>
                    <input type="password" class="form-control" id="password" name="password" placeholder="输入用户密码">
                </div>
                <?php $department = config("department"); ?>
                <div class="form-group">
                    <label for="department">所属部门</label>
                    <select class="form-control" id="department" name="department">
                        <{foreach name="$department" id="item"}>
                        <option value="<{$item}>"><{$item}></option>
                        <{/foreach}>
                    </select>
                </div>
                <div class="form-group">
                    <label for="role">用户角色</label>
                    <select name="role" class="form-control" id="role">
                        <option value="3">业务</option>
                        <!--<option value="0">游客（系统默认：无任何权限）</option> -->
                        <{foreach name="roles" id="item"}>
                        <option value="<{$item.id}>"><{$item.title}></option>
                        <{/foreach}>
                    </select>
                </div>
                <div class="form-group">
                    <label>用户状态</label>
                    <br />
                    <span>
                        开启
                        <input type="radio" name="state" value="1" class="minimal" checked>
                    </span>
                    <span>
                        关闭
                        <input type="radio" name="state" value="0" class="minimal">
                    </span>
                </div>
            </div>
            <!-- /.box-body -->

            <div class="box-footer">
                <button type="submit" class="btn btn-primary">提交</button>
                <a href="<{:url('admin/admin/index')}>" class="btn btn-warning ">返回列表</a>
            </div>
        </form>
    </div>
    <!-- /.box -->
</div>

<{/block}>



